package com.qinyu.treehole.bo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class UpdateUserBo {
    private Integer userId;
    @NotNull
    @Pattern(regexp = "^[\\u4E00-\\u9FFFa-zA-Z]{1}[\\u4E00-\\u9FFFa-zA-Z0-9]{2,15}$"
            , message = "用户名不合法！用户名应该不以数字开头，包含汉字或者大小写字母，长度在3-16！")
    private String name;
    @NotNull
    @Size(max = 255)
    private String avatar;
    @NotNull
    @Size(min = 1, max = 255)
    private String introduction;
    @NotNull
    private Boolean gender;
}
